package com.wgts.wgts.mvp.view.activity.myorder;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.ArrayList;

/*
 *
 *
 *   data:2018/9/1010:50
 *   我的订单fragment的adpter
 *
 */public class MyOrderFragmentAdapter extends FragmentStatePagerAdapter {
     private ArrayList<String> list;
    public MyOrderFragmentAdapter(FragmentManager fm, ArrayList<String> list) {
        super(fm);
        this.list = list;
    }

    @Override
    public Fragment getItem(int i) {
        return MyOrderFragment.getMyOrderFragment(i);
    }

    @Override
    public int getCount() {
        return list.size();
    }
}
